package com.alibaba.travel.comment.service.impl;

import com.alibaba.travel.comment.dao.UserCommentHistoryDao;
import com.alibaba.travel.comment.dto.entity.UserCommentHistoryEntity;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.alibaba.travel.comment.service.UserCommentHistoryService;
import com.alibaba.travel.common.utils.Query;
import com.alibaba.travel.common.utils.PageUtils;


@Service("userCommentHistoryService")
public class UserCommentHistoryServiceImpl extends ServiceImpl<UserCommentHistoryDao, UserCommentHistoryEntity> implements UserCommentHistoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserCommentHistoryEntity> page = this.page(
                new Query<UserCommentHistoryEntity>().getPage(params),
                new QueryWrapper<UserCommentHistoryEntity>()
        );

        return new PageUtils(page);
    }

}